#include <Game.hpp>
#include <ScreenManager.hpp>

#include "TestScreen.hpp"

using namespace fge;

class TestGame : public Game
{
public:
	void Initialize()
	{
		enableVerticalSync = false;
	}

	void LoadContent()
	{
		screenManager = new ScreenManager(this);
		screenManager->AddScreen(new TestScreen());

		screenManager->LoadContent();
	}

	void UnloadContent()
	{
		screenManager->UnloadContent();
	}

	void Update(float deltaSeconds)
	{
		screenManager->Update(deltaSeconds);
	}

	void Draw()
	{
		screenManager->Draw();
	}

private:
	ScreenManager *screenManager;
};

int main(int argc, char *argv[])
{
	TestGame testGame;

	testGame.Run();

	return 0;
}
